package  
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class Creature extends MovieClip
	{
		public var vX:Number = 0;
		public var vY:Number = 0;
		
		public function Creature() 
		{
			x = -50 ;// random number between 20 & 620;
			y = Math.random() * 700 + 50;
			//addEventListener(Event.ENTER_FRAME, frameH);
		}
		
		public function frameH(e:Event) {
			x += vX * Main.TIME_DIFF;
			y += vY * Main.TIME_DIFF;
			
			if (y > 700) {
				if (this.parent != null) {
					this.parent.removeChild(this);
					//removeEventListener(Event.ENTER_FRAME, frameH);
				}
			}
		}
		
	}

}